-
Notifications
You must be signed in to change notification settings - Fork 50
feat(spx-gui): reminder for mobile devices and old browsers #2819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @cn0809, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the user experience by implementing a mobile device detection mechanism. Upon detecting a mobile device, the application now presents a dedicated 'Desktop Required' guide, informing users about the platform's desktop-only support and providing a quick way to copy the access URL for use on a desktop. This change addresses issue #2650, ensuring users are appropriately guided when accessing the application from unsupported devices. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a feature to display a guide for users on mobile devices, informing them that the application is intended for desktop use. The changes include adding mobile detection logic in the main App.vue component and creating a new DesktopRequiredGuide.vue component for the message.
My review focuses on improving code structure and robustness. I've suggested extracting the mobile detection logic into a reusable composable for better maintainability. I've also pointed out a potential issue in the new component where clipboard operations could fail silently, and I've provided a suggestion to make it more robust by adding error handling.
Overall, the changes are well-implemented to address the issue. The suggestions are aimed at improving the code quality further.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Adds user-agent based reminders in spx-gui to (1) block unsupported mobile usage with a dedicated screen and (2) warn users on older/unsupported browser versions.
Changes:
- Introduce
src/utils/ua.tsfor UA parsing, mobile detection, and browser version checks. - Add
MobileReminderfull-page component andBrowserVersionReminderdialog, wiring both intoApp.vue. - Add
ua-parser-jsdependency and associated lockfile updates.
Reviewed changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| spx-gui/src/utils/ua.ts | UA parsing utilities + browser version compatibility check logic. |
| spx-gui/src/components/ua/desktop-required.png | New image asset for the mobile reminder screen. |
| spx-gui/src/components/ua/MobileReminder.vue | Full-page “desktop required” reminder with copy-URL action. |
| spx-gui/src/components/ua/BrowserVersionReminder.vue | Modal dialog warning for unsupported/old browser versions. |
| spx-gui/src/App.vue | Integrates mobile gating + browser version reminder into the app root. |
| spx-gui/package.json | Adds ua-parser-js dependency. |
| spx-gui/package-lock.json | Locks ua-parser-js and transitive deps (incl. license metadata). |
Files not reviewed (1)
- spx-gui/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/review |
Code Review SummaryThis PR successfully implements mobile device detection and browser version checking with clean UI components and proper i18n support. The implementation is functional and well-structured. Strengths:
Key Recommendations:
No security vulnerabilities identified. The code follows secure practices with proper XSS protection through Vue's template syntax. |
close: #2650
close: #2557